package com.study.springmvc.model;

import java.util.StringJoiner;

public class Member {
    private String memberId;
    private int gold;
    private int age;
    private String name;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Member.class.getSimpleName() + "[", "]")
                .add("memberId='" + memberId + "'")
                .add("gold=" + gold)
                .add("age=" + age)
                .add("name='" + name + "'")
                .toString();
    }
}
